package software.agileCourse2013.KillerGame.utils;

import java.util.Map;

import software.agileCourse2013.KillerGame.biz.Command.TemplateCommand;

public class CommandDispatcherUtils {
	Map<String ,TemplateCommand> coMap;
	
	public  TemplateCommand getCommandByKey(String key) {
		TemplateCommand res = null;
		 if (coMap.containsKey(key)) {
			res = coMap.get(key);
		}
		 return res;
	}

	public void setCoMap(Map<String, TemplateCommand> coMap) {
		this.coMap = coMap;
	}
	
}
